Don't use string concatentation in translated strings
authorMatthias Clasen <mclasen@redhat.com>
Sun, 3 Jan 2010 01:11:50 +0000 (20:11 -0500)
committerMatthias Clasen <mclasen@redhat.com>
Sun, 3 Jan 2010 01:11:50 +0000 (20:11 -0500)
gettext can't handle it, and there is no real need to use G_GSIZE_FORMAT
here anyway.

gdk-pixbuf/io-png.c
gdk-pixbuf/io-tiff.c

index da9c6198480d265b92841494fcb77ee88c57d58d..c0374ca966e92e4dfa1c9d17d5906db65f8ea33e 100644 (file)
@@ -883,8 +883,8 @@ static gboolean real_save_png (GdkPixbuf        *pixbuf,
                                        g_set_error (error,
                                                     GDK_PIXBUF_ERROR,
                                                     GDK_PIXBUF_ERROR_BAD_OPTION,
-                                                    _("Color profile has invalid length '%" G_GSIZE_FORMAT "'."),
-                                                    icc_profile_size);
+                                                    _("Color profile has invalid length %d."),
+                                                    (gint)icc_profile_size);
                                        success = FALSE;
                                        goto cleanup;
                                }
index 221bcac62659fdbe53da286c7f0a0c1ead79480c..7128a5c080b496509539b71ffd36752aea25307f 100644 (file)
@@ -735,8 +735,8 @@ gdk_pixbuf__tiff_image_save_to_callback (GdkPixbufSaveFunc   save_func,
                             g_set_error (error,
                                          GDK_PIXBUF_ERROR,
                                          GDK_PIXBUF_ERROR_BAD_OPTION,
-                                         _("Color profile has invalid length '%d'."),
-                                         icc_profile_size);
+                                         _("Color profile has invalid length %d."),
+                                         (gint)icc_profile_size);
                             retval = FALSE;
                             goto cleanup;
                         }